package vn.com.aptech.msh.business;

import java.util.List;
import javax.ejb.Remote;
import vn.com.aptech.msh.entities.User;

/**
 *
 * @author trietto
 */
@Remote
public interface IUserBean {

    User authenticate(String username, String password);

    User changePassword(User user, String newPassword);

    User updateProfile(User entity);

    void registerUser(User entity, int roleId);

    boolean isUsernameExists(String username);

    boolean isEmailExist(String email);

    int getUsersCount();
}
